-- GENERATED SPELL FOR [Empoor] --


function spell0_18482(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18482', 8335, 1)
end

function spell1_18482(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18482', 0, 1)
end

function Sorts_18482(pUnit, Event)
local choix_sorts_18482 = math.random(0, 1)
if choix_sorts_18482 == 0 then
pUnit:RegisterEvent('spell0_18482', 1, 1)
end
if choix_sorts_18482 == 1 then
pUnit:RegisterEvent('spell1_18482', 1, 1)
end
end

function mob18482_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18482', math.random(1500, 3000), 1)
end

function mob18482_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18482_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18482_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18482, 1, 'mob18482_Action')
RegisterUnitEvent(18482, 2, 'mob18482_Leave')
RegisterUnitEvent(18482, 3, 'mob18482_Kill')
RegisterUnitEvent(18482, 4, 'mob18482_Die')
